<me:UIVKPOS
    x:Class="WPFExcelReport.TVKPVAPR"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
    xmlns:UserControls="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Controls"
    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
    xmlns:VK="clr-namespace:WPFExcelReport;assembly=TVKKOPF"
    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
    xmlns:KD="clr-namespace:WPFExcelReport;assembly=TKDSTAMM" 
    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK"
    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWGBST"
    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART" 
    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN" 
    xmlns:WFW="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"
    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
    xmlns:ZB="clr-namespace:WPFExcelReport;assembly=TVKZUAB"  
    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
    xmlns:me="clr-namespace:WPFExcelReport"  
    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIVKPOS.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:PreisConverter  x:Key="price"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVKPOS.Resources>
    <StackPanel>
        <WrapPanel   VerticalAlignment="Top" Visibility="{Binding IsAuto,ElementName=TV,Converter={StaticResource bv}}">
        <Grid Margin="10,0,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0"    Text="{Binding Source={Localization:Translate Word=单位}}"/>
            <TextBlock Grid.Column="1"    Text="{Binding VKPMEEH}" Width="80"/> 
        </Grid> 
        </WrapPanel>
        <WrapPanel   VerticalAlignment="Top" Visibility="{Binding IsAuto,ElementName=TV,Converter={StaticResource nbv}}">
            <TextBlock Text="{Binding VART,ElementName=TV}"/>
        </WrapPanel>
        <WrapPanel>
            <WrapPanel>
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=数量:}}"></TextBlock>
                    <ex:NumericBox   Grid.Column="1" DecimalPlaces="2"  
                                       Text="{Binding VKPMENGE1,Converter={StaticResource d100}}" 
                                       IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="80"/>
                </Grid>
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=价格:}}"></TextBlock>
                    <ex:NumericBox Grid.Column="1"  
                                   Text="{Binding VKPPREIS,Converter={StaticResource price}}" 
                                   IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"   Width="80"/>
                </Grid>
            </WrapPanel>
        </WrapPanel>
        <ZB:TVAPR  
                  IsAuto="{Binding IsAuto,ElementName=TV}"
                  INFO="{Binding INFO,ElementName=TV}"
                  VKZSA="VK"                  
                  IsEdit="{Binding IsEdit,ElementName=TV}"
                  IsSaved="{Binding IsSaved,ElementName=TV}"
                  ORDERNUM="{Binding KEY,ElementName=TV}"/>
    </StackPanel>
</me:UIVKPOS>
